<?php foreach($this->question_list as $key => $val) {?>
<div class="alqus aw_com">
   <p class="aw_comment">
	<?php if($val['answer_count']>0){ ?>
	<span class="com_num" title="已有 <?php echo $val['answer_count']; ?> 个回复"><?php echo $val['answer_count']; ?></span>
	<span class="com_span com_bg"  title="已有<?php echo $val['answer_count']; ?> 个回复">
	<?php if($val['best_answer']){ ?>
	<em class="e" title="最佳答案"></em>
	<?php } ?>
	回复</span>
    <?php } else { ?>
	<span class="com_num" title="已有 <?php echo $val['answer_count']; ?> 个回复"><?php echo $val['answer_count']; ?></span>
	<span class="com_span">回复</span>
	<?php } ?>
   </p>
  <h4 class="titH4"><a href="question/<?php echo $val['question_id']; ?>#reply<?php echo $val['answer_count']; ?>" ><?php echo $val['title']; ?></a>
 <?php if ($this->user_id) { ?><a href="javascript:void(0);"  style="display:none;" class="addtips<?php if ($val['focus']) { ?> cur<?php } ?>" rel="添加关注" onclick="focus_question($(this), $(this).find('em'), <?php echo $val['question_id']; ?>);"><em><?php if ($val['focus']) { ?>取消<?php } ?>关注</em></a><?php } ?>
  <span class="add"><?php foreach($val['topics'] AS $t_key => $t_val){ if($t_key>2){break;} ?><a href="topic/<?php echo $t_val['topic_title']; ?>" onmouseover="eventstalk(this);" rel="<?php echo $t_val['topic_id']; ?>"><?php echo $t_val['topic_title']; ?></a><?php } ?></span></h4>
  
  <?php if ($val['answer']['answer_content']) { ?><p class="infotx fix">
  <?php if ($val['category']) { ?> 
  <?php if ($_GET['category'] != $val['category_id']) { ?><a class="class_all" href="home/explore/category-<?php echo $val['category_id']; ?>"><?php echo $val['category_info']['title']; ?></a><?php } ?>
  <?php } ?>
  <a  class="v_user" href="people/<?php echo $val['answer']['user_name']; ?>" onMouseOver="eventsMouseM(this);" rel="<?php echo $val['answer']['uid']; ?>"><?php echo $val['answer']['user_name']; ?></a><i>回复了该问题 • <?php echo $val['focus_count']; ?> 人关注 • <?php echo $val['view_count']; ?> 次浏览 • <?php echo date_friendly($val['update_time']); ?> </i>
  <br/>
  <a href="people/<?php echo $val['answer']['user_name']; ?>" class="tface" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['answer']['uid']; ?>"><img src="<?php echo get_avatar_url($val['answer']['uid'],'mid',$val['answer']['avatar_file']); ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['answer']['uid']; ?>"/></a>
  </p>
  <?php } else { ?>
  <p class="infotx fix"><?php if ($_GET['category'] != $val['category_id']) { ?><a class="class_all" href="home/explore/category-<?php echo $val['category_id']; ?>"><?php echo $val['category_info']['title']; ?></a><?php } ?><a  class="v_user" href="people/<?php echo $val['user_info']['user_name']; ?>" onMouseOver="eventsMouseM(this);" rel="<?php echo $val['user_info']['uid']; ?>"><?php echo $val['user_info']['user_name']; ?></a> <i>发起了该问题 • <?php echo $val['focus_count']; ?> 人关注 • <?php echo $val['view_count']; ?> 次浏览 • <?php echo date_friendly($val['add_time']); ?></i><a href="people/<?php echo $val['user_info']['user_name']; ?>" class="tface"><img src="<?php echo get_avatar_url($val['user_info']['uid'],'mid',$val['user_info']['avatar_file']); ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['user_info']['uid']; ?>"/></a></p>
  <?php } ?>
</div>
<?php } ?>
